package com.dt76.smallloanbackenduser.remote.zjs;
import com.dt76.smallloanbackenduser.hystrix.zjs.LebalRemoteHystrix;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "smallloan-backend-service",fallback = LebalRemoteHystrix.class)
public interface LebalRemote {

    @RequestMapping("/zjs/qryPageLebal")
    public Page qryPageAllLebal(@RequestParam("pageIndex") int pageIndex
    );

    @RequestMapping("/zjs/delLebal")
    Result delLebal(@RequestParam("userId") int userId);

    @RequestMapping("/zjs/udpLebal")
    Result udpLebal(@RequestParam("userId") int userId,
                    @RequestParam("lebal") String lebal);
}
